/* eslint-disable prettier/prettier */
import Downloadfromjson from '../../services/JsonDownLoad';
import { Alert } from 'react-native';
export const register = (component) => {
  return () => {
    // 你的注册逻辑
    console.log('Register function called');
    component.props.register();
  };
};

export const nav = (component, route) => {
  return () => {
    // 你的导航逻辑
    console.log(`Navigation to ${route} called`);
    component.props.navigation.navigate(route);
  };
};

 